package com.ai.bitcoin.jpa.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Entity
@Table(name = "bcc_24_hour_volume")
@Data
@DynamicUpdate
@DynamicInsert
public class Bcc24HourVolume implements Serializable {
    private static final long serialVersionUID = -1L;
    @Id
    @JsonIgnore
    String id;

    String symbol;
    //来源
    String source;
    //配对
    String pair;
    //24小时交易量
    String volumeUsd;
    //价格
    String priceUsd;
    //交易量占比
    String volumePercent;
    @JsonIgnore
    Date updateDate;
}
